<div class="group-box-content">
<label>Chọn niên khóa:</label>
	<select id="NienKhoa" name="NienKhoa">
	<option value="">--chọn--</option>
	<?php
	$sql = "SELECT distinct NienKhoa FROM dbo_nienkhoa ORDER BY NienKhoa";
	$result = $db->query ( $sql );
	if ($result) {
		while ( $row = $result->fetch () ) {
			echo "<option value='" . $row ["NienKhoa"] . "'";
			if ($row ["NienKhoa"] == $nienKhoa) {
				echo " selected ";
			}
			echo ">";
			echo $row ["NienKhoa"] . "</option>";
		}
	}
	?>	
	</select>
</div>